package com.ek.server;

import java.util.Scanner;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer
public class EKServer {
	
	public static void main(String[] args) {
		//读取控制台输入，觉得使用哪个profiles
		Scanner s = new Scanner(System.in);
		String profiles = s.nextLine();
		new SpringApplicationBuilder(EKServer.class).profiles(profiles).run(args);
		//SpringApplication.run(EKServer.class, args);
	}

}
